<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a><cite>当前位置</cite></a>
							<a><cite>管理员</cite></a>
						</span>
					</div>
					<div class="xinsu-add">
						<a href="javascript:;"><i class="layui-icon">&#xe61f;</i>新增管理员</a>
					</div>
					<form class="layui-form xinsu-form" action="" method="get">
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">账号搜索</label>
								<div class="layui-input-block xinsu-input-block2">
									<input type="text" name="username" value="<{if $username != '0'}><{urldecode($username)}><{/if}>" class="layui-input" />
								</div>
							</div>
							<button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>ID</th>
									<th>账号</th>
									<th>名称</th>
									<th>帐号类型</th>
									<th>注册日期</th>
									<th>最后登录</th>
									<th>最后登录IP</th>
									<th>操作</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.id}></td>
									<td><{$val.username}></td>
									<td><{$val.nickname}></td>
									<td><{$role[$val["role_id"]]}></td>
									<td><{date("Y-m-d H:i:s", $val["reg_date"])}></td>
									<td><{date("Y-m-d H:i:s", $val["last_login"])}></td>
									<td><{long2ip($val.ip)}></td>
									<td>
										<a id="xinsu-locked-<{$val.id}>" class="<{if $val.is_locked == 0}>xinsu-fontcolor-blue<{else}>xinsu-fontcolor-red<{/if}> xinsu-change" href="javascript:;" data="<{$val.id}>"  data-uri="/<{$common_info.controller}>/change/<{$val.id}>"><{if $val.is_locked == 1}>解锁<{else}>锁定<{/if}></a>	
										<a class="xinsu-fontcolor-blue xinsu-amend xinsu-edit" href="javascript:;" data="<{$val.id}>">修改</a>
										<{if $val.id != 1 && $val.id != $_SESSION["admin"]["id"] && $_SESSION["admin"]["role_id"] == 0}>
										<a class="xinsu-fontcolor-blue xinsu-amend xinsu-delete" href="javascript:;" data="<{$val.id}>">删除</a>
										<{/if}>
									</td>
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="8">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-instructions">
						<span>说明：</span>
						<p>停用/启用：停止或允许用户登陆.</p>
						<p>管理员权限：超级管理员有删除权限，管理员不可以删除自己.</p>
					</div>
					
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>
